<template>
  <div id='app'>
      <RouterTo :title="title"></RouterTo>
      <div class="yx">
          <ul>
              <li v-for="(c,i) in Selected" :key="i" @click="cms(c)">
                  <img :src="c.pic" alt="">
                <p>查看详情</p>

                  <p>{{c.descript}}</p>
                <p>{{c.title}}</p>
              </li>
          </ul>
      </div>


  </div>
</template>

<script>
import RouterTo from '../../components/hedaerTO/routerTo'

export default {
  data () {
    return {
      Selected: [],
      title:'严选专栏'
    }
  },
  methods: {
 get(){
      this.$request.gteDist({
        code:'2'
      }).then(res=>{
       console.log(res.data.data);
        this.Selected=res.data.data

      })
    },
     cms(c){
        this.$router.push(
          {
            path:this.$routerConfig.cms.path,
            query:{c}
          })
    }
  },
  
  mounted() {
      this.get()

  },
  components: {
RouterTo
  }
}
</script>

<style lang='scss'>
.yx{
    width: 100vw;
    ul{
        width: 100%;
        li{
            width: 95%;
            height: 250px;
            margin:2vh  auto;

            img{
                width: 100%;
                height: 100%;
            }
            p{
                margin-top: -10vh;
                color: white;
                text-align: center;
                overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
            }
            p:nth-child(3){
                font-size: 18px;
            }
            p:nth-child(2){
               
                border: 2px solid rgb(255, 0, 0);
                border-radius:10px ;
            }

        }
    }
    
}

</style>
